package impl

import (
	"gitee.com/liuxiaowei123/vblog-1.1/app/blog"
	"gitee.com/liuxiaowei123/vblog-1.1/config"
	"gitee.com/liuxiaowei123/vblog-1.1/ioc"
	"gorm.io/gorm"
)

type BlogServiceImpl struct {
	db *gorm.DB
}

func init() {
	ioc.IocController().Registry(&BlogServiceImpl{})
}

func (b *BlogServiceImpl) Init() {
	b.db = config.C.Mysql.Getconn().Debug()
}

func (b *BlogServiceImpl) Name() string {
	return blog.AppName
}
